<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/mall/shopCategory.js"></script>
  </head>
  <body>
<div class="form_item topic_add">
   <form id="data-form">
    <dl>
        <dt>上级分类：</dt>
        <dd><c:if test="${parent==null}">无</c:if><c:if test="${parent!=null}">${parent.name}</c:if></dd>
    </dl>
    <dl>
        <dt>名称：</dt>
        <dd><input type="text" name="name" value="${mallShopCategoryVo.name }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>状态：</dt>
        <dd>
        	<select name="status">
				<option value="1"
					<c:if test="${mallShopCategoryVo != null && mallShopCategoryVo.status==1}"> selected="selected"</c:if>
				>有效</option>
				<option value="2"
					<c:if test="${mallShopCategoryVo != null && mallShopCategoryVo.status==2}"> selected="selected"</c:if>
				>失效</option>
			</select>
        </dd>
    </dl>
    <dl>
        <dt>种类：</dt>
        <dd>
        	<select name="type">
				<option value="1"
					<c:if test="${mallShopCategoryVo != null && mallShopCategoryVo.type==1}"> selected="selected"</c:if>
				>邻里店</option>
				<option value="2"
					<c:if test="${mallShopCategoryVo != null && mallShopCategoryVo.type==2}"> selected="selected"</c:if>
				>周边商家</option>
			</select>
        </dd>
    </dl>
    <dl>
   		<dt>排序：</dt>
       	<dd><input type="text" class="txt grid-15 easyui-numberbox" precision="0" name="oidx" data-options="required:true" value="${mallShopCategoryVo.oidx }"/></dd>
    </dl>
    <input name="categoryId" type="hidden" value="${mallShopCategoryVo.categoryId}"/>
	<input name="parentId" type="hidden" value="${parent.categoryId}"/>
    </form>
	<c:if test="${mallShopCategoryVo == null }">
		<p class="page_btn" id="showBtn"><input type="button" id="doSave" value="保存" class="btn_blue" onclick="admin.shopCategory.doAdd();"/></p>
	</c:if>
	<c:if test="${mallShopCategoryVo != null }">
		 <p class="page_btn" id="showBtn"><input type="button" id="doUpdate" value="修改" class="btn_blue" onclick="admin.shopCategory.doUpdate();"/></p>
	</c:if>
    
</div>

  </body>
</html>
